#include "stdafx.h"
#pragma once
#define WIN32_LEAN_AND_MEAN	
#define _CRT_SECURE_NO_DEPRECATE
#include <windows.h>
#include <objbase.h>
#include "UIlib.h"
#include "English_Study.h"

using namespace DuiLib;
class CCiDian : public CWindowWnd, public INotifyUI
{
public:
	CCiDian()
	{
		m_pParent = NULL;
	};

	CCiDian(CEnglish_Study *pParent)
	{
		m_pParent = pParent;
	};
	LPCTSTR GetWindowClassName() const 
	{ 
		return _T("UIMainFrame"); 
	};
	UINT GetClassStyle() const 
	{ 
		return UI_CLASSSTYLE_FRAME | CS_DBLCLKS; 
	};
	void OnFinalMessage(HWND /*hWnd*/) 
	{ 
		/*delete this;*/
	};
	void Init() { }
	void OnPrepare(TNotifyUI& msg) ;
	void Notify(TNotifyUI& msg);
	LRESULT HandleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam);
	void InitDictControls(TNotifyUI& msg);

	void InitDictWord(int nIndex);
	void OnTimer(TNotifyUI& msg);
public:
	CPaintManagerUI m_PaintManager;
	CEnglish_Study *m_pParent;

};